i=1

while i <10:
    j=1
    while j <=i:
        a =i*j
        print('{j}*{i}={a}'.format(j=j,i=i,a=a),end=' ')
        j+=1

    print('\n')
    i+=1